<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hyper Space Music :: <?php echo html::specialchars($title); ?></title>
<?php
	echo html::Stylesheet(
		array
		(
			'media/css/styles.css',
			'media/css/iss/popup.css',
			'media/js/dojo/dojo/resources/dojo.css',
			'media/js/dojo/dijit/themes/tundra/tundra.css',		
		),
		array
		(
			'screen',
			'screen',
			'screen',
			'screen',
		)
	);
	echo html::script(
	array
	(
		'media/js/jquery/jquery-1.3.2.js',
		'media/js/jquery/jquery.form.js',
		'media/js/iss/namespace.js',
        'media/js/iss/lang.js',
        'media/js/iss/dispatcher.js',
        'media/js/iss/popup.js',
		'media/js/xspf/swfobject.js'
	),
		FALSE
	);
?>
<script type="text/javascript" src="<?php echo url::base();?>media/js/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true, dojoIframeHistoryUrl:'media/js/dojo/dojo/resources/iframe_history.html'"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

</head>
<body class='tundra'>
<div id="main">
  <div id="header">
    <div id="menu">
    	<?php 
			foreach (array_reverse($main_menu) as $link => $url):
				echo html::anchor($url, $link) . ' ';
			endforeach;
		?>
    </div>
    <div id="header-Bottom">
      <div id="logoBlock">
        <h1>Hyper Space Music</h1>
        <p>Powered by :: Gramma Entertainment.</p>
      </div>
      <div id="navBlock">
        <h3><?php echo $sub_nav;?></h3>
        <?php 
			foreach ($sub_menu as $link => $url):
				echo html::anchor($url, $link) . ' ';
			endforeach;
		?>
      </div>
    </div>
  </div>